<?php
namespace app\admin\controller\v1;
use app\common\model\Store as StoreModel;

class Store extends BaseController
{
    public function getAll(){
        $res = StoreModel::getAll();
        $res = collection($res)->toArray();
        return successReturn($res);
    }
    public function createOne(){
        $data = input('post.');
        $res = StoreModel::createOne($data);
        return successReturn($res);
    }
}
